home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / xfsdump.z / xfsdump
Encoding:
Text File  |  2002-10-03  |  44.7 KB  |  793 lines

  1.  
  2.  
  3.  
  4. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      xfsdump - XFS filesystem incremental dump utility
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      xxxxffffssssdddduuuummmmpppp -h
  13.      xxxxffffssssdddduuuummmmpppp [ options ] -f _d_e_s_t [ -f _d_e_s_t ... ] _f_i_l_e_s_y_s_t_e_m
  14.      xxxxffffssssdddduuuummmmpppp [ options ] - _f_i_l_e_s_y_s_t_e_m
  15.      xxxxffffssssdddduuuummmmpppp -I [ subopt=value ... ]
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _x_f_s_d_u_m_p backs up files and their attributes in a filesystem.  The files
  19.      are dumped to storage media, a regular file, or standard output.  Options
  20.      allow the operator to have all files dumped, just files that have changed
  21.      since a previous dump, or just files contained in a list of pathnames.
  22.  
  23.      The _x_f_s_r_e_s_t_o_r_e(1M) utility re-populates a filesystem with the contents of
  24.      the dump.
  25.  
  26.      Each invocation of _x_f_s_d_u_m_p dumps just one filesystem.  That invocation is
  27.      termed a dump session.  The dump session splits the filesystem into one
  28.      or more dump streams, one per destination.  The split is done in
  29.      filesystem inode number (ino) order, at boundaries selected to equalize
  30.      the size of each stream.  Furthermore, the breakpoints between streams
  31.      may be in the middle of very large files (at extent boundaries) if
  32.      necessary to achieve reasonable stream size equalization.  Each dump
  33.      stream can span several media objects, and a single media object can
  34.      contain several dump streams.  The typical media object is a tape
  35.      cartridge.  The media object records the dump stream as one or more media
  36.      files.  A media file is a self-contained partial dump.  The portion of a
  37.      dump stream contained on a media object can be split into several media
  38.      files.  This minimizes the impact of media dropouts on the entire dump
  39.      stream, and speeds subtree restores.
  40.  
  41.      _x_f_s_d_u_m_p maintains an online dump inventory in /_v_a_r/_x_f_s_d_u_m_p/_i_n_v_e_n_t_o_r_y.
  42.      The ----IIII option displays the inventory contents hierarchically.  The levels
  43.      of the hierarchy are:  filesystem, dump session, stream, and media file.
  44.  
  45.      The options to _x_f_s_d_u_m_p are:
  46.  
  47.      ----aaaa   Specifies that files for which the Data Migration Facility (DMF) has
  48.           complete offline copies (dual-state files) be treated as if they
  49.           were offline (OFL).  This means that the file data will not be
  50.           dumped by xfsdump, resulting in a smaller dump file.  If the file is
  51.           later restored the file data is still accessible through DMF.  If
  52.           both option -a and '-z option' are specified, '-a option' takes
  53.           precedence (see '-z option' below).
  54.  
  55.      ----bbbb _b_l_o_c_k_s_i_z_e
  56.           Specifies the blocksize to be used for the dump. This option is
  57.           specified only with the minimal rmt option (see the ----mmmm option
  58.           below). For a QIC drive , blocksize must always be 512.  For other
  59.           drives such as DAT or 8 mm , a blocksize of 245760 bytes works well.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  71.  
  72.  
  73.  
  74.           The same blocksize must be specified to restore the tape.  When
  75.           specified , this blocksize applies to all remote tape destinations.
  76.  
  77.      ----cccc _p_r_o_g_n_a_m_e
  78.           Use the specified program to alert the operator when a media change
  79.           is required. The alert program is typically a script to send a mail
  80.           or flash a window to draw the operator's attention.
  81.  
  82.      ----dddd _f_i_l_e_s_i_z_e
  83.           Specifies the size, in megabytes, of dump media files.  xfsdump will
  84.           dump data to tape in one or more media files.  It will attempt to
  85.           estimate the ideal media file size based on the tape device being
  86.           used, and the amount of data to be written.  The media file size may
  87.           need to be adjusted if, for example, xfsdump cannot fit a media file
  88.           onto a single tape.
  89.  
  90.      ----eeee   Allow files to be excluded from the dump.  This will cause xfsdump
  91.           to skip those files which are tagged with the
  92.           "SGI_XFSDUMP_SKIP_FILE" attribute.  Without this flag, xfsdump will
  93.           ignore the attribute, and continue to dump affected files.
  94.  
  95.      ----ffff _d_e_s_t [ ----ffff _d_e_s_t ... ]
  96.           Specifies a dump destination.  A dump destination can be the
  97.           pathname of a device (such as a tape drive), a regular file, or a
  98.           remote tape drive (see _r_m_t(1M)).  Up to 20 dump destinations can be
  99.           specified, in which case each destination receives an equal portion
  100.           of the filesystem.  This option must be omitted if the standard
  101.           output option (a lone ---- preceding the source filesystem
  102.           specification) is specified.
  103.  
  104.      ----llll _l_e_v_e_l
  105.           Specifies a dump level of 0 to 9.  The dump level determines the
  106.           base dump to which this dump is relative.  The base dump is the most
  107.           recent dump at a lesser level.  A level 0 dump is absolute - all
  108.           files are dumped.  A dump level where 1 <= _l_e_v_e_l <= 9 is referred to
  109.           as an incremental dump.  Only files that have been changed since the
  110.           base dump are dumped.  Subtree dumps (see the ----ssss option below)
  111.           cannot be used as the base for incremental dumps.
  112.  
  113.      ----mmmm   Use the minimal rmt protocol for remote tape destinations. This is
  114.           used when the remote machine is a non-SGI machine. With this option,
  115.           _x_f_s_d_u_m_p uses version 1 rmt protocol for all remote tape drives. This
  116.           option cannot be used without specifying a blocksize to be used (see
  117.           ----bbbb option above). If all rmt destinations are SGI machines, it is
  118.           preferable nnnnooootttt to specify this option.
  119.  
  120.      ----oooo   Overwrite the tape. With this option, _x_f_s_d_u_m_p does not read the tape
  121.           first to check the contents. This option may be used if _x_f_s_d_u_m_p is
  122.           unable to determine the block size of a tape .
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      ----pppp _i_n_t_e_r_v_a_l
  141.           Causes progress reports to be printed at the specified interval.
  142.           _i_n_t_e_r_v_a_l is given in seconds.  The progress report indicates how
  143.           many files have been dumped, the total number of files to dump, the
  144.           percentage of data dumped, and the elapsed time.
  145.  
  146.      ----ssss _p_a_t_h_n_a_m_e [ ----ssss _p_a_t_h_n_a_m_e ... ]
  147.           Restricts the dump to files contained in the specified pathnames
  148.           (subtrees).  Up to 100 pathnames can be specified.  A _p_a_t_h_n_a_m_e must
  149.           be relative to the mount point of the filesystem.  For example, if a
  150.           filesystem is mounted at /_d_2, the _p_a_t_h_n_a_m_e argument for the
  151.           directory /_d_2/_u_s_e_r_s is ``users''.  A _p_a_t_h_n_a_m_e can be a file or a
  152.           directory; if it is a directory, the entire hierarchy of files and
  153.           subdirectories rooted at that directory is dumped.  Subtree dumps
  154.           cannot be used as the base for incremental dumps (see the ----llll option
  155.           above).
  156.  
  157.      ----vvvv _v_e_r_b_o_s_i_t_y
  158.      ----vvvv _s_u_b_s_y_s=_v_e_r_b_o_s_i_t_y[,_s_u_b_s_y_s=_v_e_r_b_o_s_i_t_y,...]
  159.           Specifies the level of detail used for messages displayed during the
  160.           course of the dump. The _v_e_r_b_o_s_i_t_y argument can be passed as either a
  161.           string or an integer. If passed as a string the following values may
  162.           be used:  ssssiiiilllleeeennnntttt, vvvveeeerrrrbbbboooosssseeee, ttttrrrraaaacccceeee, ddddeeeebbbbuuuugggg, or nnnniiiittttttttyyyy.  If passed as an
  163.           integer, values from 0-5 may be used. The values 0-4 correspond to
  164.           the strings already listed. The value 5 can be used to produce even
  165.           more verbose debug output.
  166.  
  167.           The first form of this option activates message logging across all
  168.           dump subsystems. The second form allows the message logging level to
  169.           be controlled on a per-subsystem basis. The two forms can be
  170.           combined (see the example below). The argument _s_u_b_s_y_s can take one
  171.           of the following values: ggggeeeennnneeeerrrraaaallll, pppprrrroooocccc, ddddrrrriiiivvvveeee, mmmmeeeeddddiiiiaaaa, iiiinnnnvvvveeeennnnttttoooorrrryyyy,
  172.           iiiinnnnoooommmmaaaapppp and eeeexxxxcccclllluuuuddddeeeedddd____ffffiiiilllleeeessss.
  173.  
  174.           For example, to dump the root filesystem with tracing activated for
  175.           all subsystems:
  176.  
  177.                #### xxxxffffssssdddduuuummmmpppp ----vvvv ttttrrrraaaacccceeee ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  178.  
  179.           To enable debug-level tracing for drive and media operations:
  180.  
  181.                #### xxxxffffssssdddduuuummmmpppp ----vvvv ddddrrrriiiivvvveeee====ddddeeeebbbbuuuugggg,,,,mmmmeeeeddddiiiiaaaa====ddddeeeebbbbuuuugggg ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  182.  
  183.           To enable tracing for all subsystems, and debug level tracing for
  184.           drive operations only:
  185.  
  186.                #### xxxxffffssssdddduuuummmmpppp ----vvvv ttttrrrraaaacccceeee,,,,ddddrrrriiiivvvveeee====ddddeeeebbbbuuuugggg ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  187.  
  188.           To list files that will be excluded from the dump:
  189.  
  190.                #### xxxxffffssssdddduuuummmmpppp ----eeee ----vvvv eeeexxxxcccclllluuuuddddeeeedddd____ffffiiiilllleeeessss====ddddeeeebbbbuuuugggg ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  203.  
  204.  
  205.  
  206.      ----zzzz _s_i_z_e
  207.           Specifies the maximum size, in kilobytes, of files to be included in
  208.           the dump.  Files over this size will be excluded from the dump,
  209.           except for DMF dual-state files when '-a option' is specified (see
  210.           '-a option' above).  When specified, '-a option' takes precedence
  211.           over '-z option'.  The size is an estimate based on the number of
  212.           disk blocks actually used by the file, and so does not include
  213.           holes.  In other words, size refers to the amount of space the file
  214.           would take in the resulting dump.  On an interactive restore, the
  215.           skipped file is visible with xfsrestore's 'ls' and while you can use
  216.           the 'add' and 'extract' commands, nothing will be restored.
  217.  
  218.      ----AAAA   Do not dump extended file attributes.  When dumping a filesystem
  219.           managed within a DMF environment this option should not be used. DMF
  220.           stores file migration status within extended attributes associated
  221.           with each file. If these attributes are not preserved when the
  222.           filesystem is restored, files that had been in migrated state will
  223.           not be recallable by DMF. Note that dumps containing extended file
  224.           attributes cannot be restored with older versions of _x_f_s_r_e_s_t_o_r_e(1M).
  225.  
  226.      ----BBBB _s_e_s_s_i_o_n__i_d
  227.           Specifies the ID of the dump session upon which this dump session is
  228.           to be based.  If this option is specified, the ----llll (level) and ----RRRR
  229.           (resume) options are not allowed.  Instead, xxxxffffssssdddduuuummmmpppp determines if
  230.           the current dump session should be incremental and/or resumed, by
  231.           looking at the base session's level and interrupted attributes.  If
  232.           the base session was interrupted, the current dump session is a
  233.           resumption of that base at the same level.  Otherwise, the current
  234.           dump session is an incremental dump with a level one greater than
  235.           that of the base session.  This option allows incremental and
  236.           resumed dumps to be based on any previous dump, rather than just the
  237.           most recent.
  238.  
  239.      ----EEEE   Pre-erase media.  If this option is specified, media is erased prior
  240.           to use.  The operator is prompted for confirmation, unless the ----FFFF
  241.           option is also specified.
  242.  
  243.      ----FFFF   Don't prompt the operator.  When _x_f_s_d_u_m_p encounters a media object
  244.           containing non-xfsdump data, _x_f_s_d_u_m_p normally asks the operator for
  245.           permission to overwrite.  With this option the overwrite is
  246.           performed, no questions asked.  When _x_f_s_d_u_m_p encounters end-of-media
  247.           during a dump, _x_f_s_d_u_m_p normally asks the operator if another media
  248.           object will be provided.  With this option the dump is instead
  249.           interrupted.
  250.  
  251.      ----IIII   Displays the _x_f_s_d_u_m_p inventory (no dump is performed).  _x_f_s_d_u_m_p
  252.           records each dump session in an online inventory in
  253.           /_v_a_r/_x_f_s_d_u_m_p/_i_n_v_e_n_t_o_r_y.  _x_f_s_d_u_m_p uses this inventory to determine
  254.           the base for incremental dumps.  It is also useful for manually
  255.           identifying a dump session to be restored.  Suboptions to filter the
  256.           inventory display are described later.
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  269.  
  270.  
  271.  
  272.      ----JJJJ   Inhibits the normal update of the inventory.  This is useful when
  273.           the media being dumped to will be discarded or overwritten.
  274.  
  275.      ----LLLL _s_e_s_s_i_o_n__l_a_b_e_l
  276.           Specifies a label for the dump session.  It can be any arbitrary
  277.           string up to 255 characters long.
  278.  
  279.      ----MMMM _l_a_b_e_l [ ----MMMM _l_a_b_e_l ... ]
  280.           Specifies a label for the first media object (for example, tape
  281.           cartridge) written on the corresponding destination during the
  282.           session.  It can be any arbitrary string up to 255 characters long.
  283.           Multiple media object labels can be specified, one for each
  284.           destination.
  285.  
  286.      ----OOOO _o_p_t_i_o_n_s__f_i_l_e
  287.           Insert the options contained in _o_p_t_i_o_n_s__f_i_l_e into the beginning of
  288.           the command line.  The options are specified just as they would
  289.           appear if typed into the command line.  In addition, newline
  290.           characters (\n) can be used as whitespace.  The options are placed
  291.           before all options actually given on the command line, just after
  292.           the command name.  Only one ----OOOO option can be used.  Recursive use is
  293.           ignored.  The source filesystem cannot be specified in _o_p_t_i_o_n_s__f_i_l_e.
  294.  
  295.      ----RRRR   Resumes a previously interrupted dump session.  If the most recent
  296.           dump at this dump's level (----llll option) was interrupted, this dump
  297.           contains only files not in the interrupted dump and consistent with
  298.           the incremental level.  However, files contained in the interrupted
  299.           dump that have been subsequently modified are re-dumped.
  300.  
  301.      ----TTTT   Inhibits interactive dialogue timeouts.  When the ----FFFF option is not
  302.           specified, _x_f_s_d_u_m_p prompts the operator for labels and media
  303.           changes.  Each dialogue normally times out if no response is
  304.           supplied.  This option prevents the timeout.
  305.  
  306.      ----YYYY _l_e_n_g_t_h
  307.           Specify I/O buffer ring length.  _x_f_s_d_u_m_p uses a ring of output
  308.           buffers to achieve maximum throughput when dumping to tape drives.
  309.           The default ring length is 3.
  310.  
  311.      ----    A lone ---- causes the dump stream to be sent to the standard output,
  312.           where it can be piped to another utility such as _x_f_s_r_e_s_t_o_r_e(1M) or
  313.           redirected to a file.  This option cannot be used with the ----ffff
  314.           option.  The ---- must follow all other options and precede the
  315.           filesystem specification.
  316.  
  317.      The filesystem, _f_i_l_e_s_y_s_t_e_m, can be specified either as a mount point or
  318.      as a special device file (for example, /_d_e_v/_d_s_k/_d_k_s_0_d_1_s_0).  The
  319.      filesystem must be mounted to be dumped.
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  335.  
  336.  
  337.  
  338. NOTES
  339.    DDDDuuuummmmpppp IIIInnnntttteeeerrrrrrrruuuuppppttttiiiioooonnnn
  340.      A dump can be interrupted at any time and later resumed.  To interrupt,
  341.      type control-C (or the current terminal interrupt character).  The
  342.      operator is prompted to select one of several operations, including dump
  343.      interruption.  After the operator selects dump interruption, the dump
  344.      continues until a convenient break point is encountered (typically the
  345.      end of the current file).  Very large files are broken into smaller
  346.      subfiles, so the wait for the end of the current file is brief.
  347.  
  348.    DDDDuuuummmmpppp RRRReeeessssuuuummmmppppttttiiiioooonnnn
  349.      A previously interrupted dump can be resumed by specifying the ----RRRR option.
  350.      If the most recent dump at the specified level was interrupted, the new
  351.      dump does not include files already dumped, unless they have changed
  352.      since the interrupted dump.
  353.  
  354.    MMMMeeeeddddiiiiaaaa MMMMaaaannnnaaaaggggeeeemmmmeeeennnntttt
  355.      A single media object can contain many dump streams.  Conversely, a
  356.      single dump stream can span multiple media objects.  If a dump stream is
  357.      sent to a media object already containing one or more dumps, _x_f_s_d_u_m_p
  358.      appends the new dump stream after the last dump stream.  Media files are
  359.      never overwritten.  If end-of-media is encountered during the course of a
  360.      dump, the operator is prompted to insert a new media object into the
  361.      drive.  The dump stream continuation is appended after the last media
  362.      file on the new media object.
  363.  
  364.    IIIInnnnvvvveeeennnnttttoooorrrryyyy
  365.      Each dump session updates an inventory database in
  366.      /_v_a_r/_x_f_s_d_u_m_p/_i_n_v_e_n_t_o_r_y.  _x_f_s_d_u_m_p uses the inventory to determine the base
  367.      of incremental and resumed dumps.
  368.  
  369.      This database can be displayed by invoking _x_f_s_d_u_m_p with the ----IIII option.
  370.      The display uses tabbed indentation to present the inventory
  371.      hierarchically.  The first level is filesystem.  The second level is
  372.      session.  The third level is media stream (currently only one stream is
  373.      supported).  The fourth level lists the media files sequentially
  374.      composing the stream.
  375.  
  376.      The following suboptions are available to filter the display.
  377.  
  378.      ----IIII ddddeeeepppptttthhhh====_n
  379.           (where _n is 1, 2, or 3) limits the hierarchical depth of the
  380.           display. When _n is 1, only the filesystem information from the
  381.           inventory is displayed. When _n is 2, only filesystem and session
  382.           information are displayed. When _n is 3, only filesystem, session and
  383.           stream information are displayed.
  384.  
  385.      ----IIII lllleeeevvvveeeellll====_n
  386.           (where _n is the dump level) limits the display to dumps of that
  387.           particular dump level.
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  401.  
  402.  
  403.  
  404.      The display may be restricted to media files contained in a specific
  405.      media object.
  406.  
  407.      ----IIII mmmmoooobbbbjjjjiiiidddd====_v_a_l_u_e
  408.           (where _v_a_l_u_e is a media ID) specifies the media object by its media
  409.           ID.
  410.  
  411.      ----IIII mmmmoooobbbbjjjjllllaaaabbbbeeeellll====_v_a_l_u_e
  412.           (where _v_a_l_u_e is a media label) specifies the media object by its
  413.           media label.
  414.  
  415.      Similarly, the display can be restricted to a specific filesystem.
  416.  
  417.      ----IIII mmmmnnnntttt====_m_o_u_n_t__p_o_i_n_t
  418.           (that is, [hostname:]pathname), identifies the filesystem by
  419.           mountpoint.  Specifying the hostname is optional, but may be useful
  420.           in a clustered environment where more than one host can be
  421.           responsible for dumping a filesystem.
  422.  
  423.      ----IIII ffffssssiiiidddd====_f_i_l_e_s_y_s_t_e_m__i_d
  424.           identifies the filesystem by filesystem ID.
  425.  
  426.      ----IIII ddddeeeevvvv====_d_e_v_i_c_e__p_a_t_h_n_a_m_e
  427.           (that is, [hostname:]device_pathname) identifies the filesystem by
  428.           device. As with the mmmmnnnntttt filter, specifying the hostname is optional.
  429.  
  430.      More than one of these suboptions, separated by commas, may be specified
  431.      at the same time to limit the display of the inventory to those dumps of
  432.      interest.  However, at most four suboptions can be specified at once:
  433.      one to constrain the display hierarchy depth, one to constrain the dump
  434.      level, one to constrain the media object, and one to constrain the
  435.      filesystem.
  436.  
  437.      For example, ----IIII ddddeeeepppptttthhhh====1111,,,,mmmmoooobbbbjjjjllllaaaabbbbeeeellll====""""ttttaaaappppeeee 1111"""",,,,mmmmnnnntttt====hhhhoooosssstttt1111::::////tttteeeesssstttt____mmmmnnnntttt would
  438.      display only the filesystem information (depth=1) for those filesystems
  439.      that were mounted on _h_o_s_t_1:/_t_e_s_t__m_n_t at the time of the dump, and only
  440.      those filesystems dumped to the media object labeled "tape 1".
  441.  
  442.      Dump records may be removed (pruned) from the inventory using the
  443.      _x_f_s_i_n_v_u_t_i_l program.
  444.  
  445.      An additional media file is placed at the end of each dump stream.  This
  446.      media file contains the inventory information for the current dump
  447.      session.  This is currently unused.
  448.  
  449.      The inventory files stored in /_v_a_r/_x_f_s_d_u_m_p are not included in the dump,
  450.      even if that directory is contained within the filesystem being dumped.
  451.      Including the inventory in the dump may lead to loss or corruption of
  452.      data, should an older version be restored overwriting the current
  453.      version.  To backup the _x_f_s_d_u_m_p inventory, the contents of /_v_a_r/_x_f_s_d_u_m_p
  454.      should be copied to another location which may then be safely dumped.
  455.      Upon restoration, those files may be copied back into /_v_a_r/_x_f_s_d_u_m_p,
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  467.  
  468.  
  469.  
  470.      overwriting whatever files may be there, or _x_f_s_i_n_v_u_t_i_l(1M) may be used to
  471.      selectively merge parts of the restored inventory back into the current
  472.      inventory.  Prior to IRIX 6.5.15, _x_f_s_d_u_m_p would include the /_v_a_r/_x_f_s_d_u_m_p
  473.      directory in the dump.  Care should be taken not to overwrite the
  474.      /_v_a_r/_x_f_s_d_u_m_p directory when restoring an old dump, by either restoring
  475.      the filesystem to another location or by copying the current contents of
  476.      /_v_a_r/_x_f_s_d_u_m_p to a safe place prior to running _x_f_s_r_e_s_t_o_r_e(1M).
  477.  
  478.      When operating in the miniroot environment, _x_f_s_d_u_m_p does not create and
  479.      does not reference the inventory database.  Thus incremental and resumed
  480.      dumps are not allowed.
  481.  
  482.    LLLLaaaabbbbeeeellllssss
  483.      The operator can specify a label to identify the dump session and a label
  484.      to identify a media object.  The session label is placed in every media
  485.      file produced in the course of the dump, and is recorded in the
  486.      inventory.
  487.  
  488.      The media label is used to identify media objects, and is independent of
  489.      the session label.  Each media file on the media object contains a copy
  490.      of the media label.  An error is returned if the operator specifies a
  491.      media label that does not match the media label on a media object
  492.      containing valid media files.  Media labels are recorded in the
  493.      inventory.
  494.  
  495.    UUUUUUUUIIIIDDDDssss
  496.      UUIDs (Universally Unique Identifiers) are used in three places:  to
  497.      identify the filesystem being dumped (using the filesystem UUID, see
  498.      _x_f_s(4) for more details), to identify the dump session, and to identify
  499.      each media object.  The inventory display (----IIII) includes all of these.
  500.  
  501.    DDDDuuuummmmpppp LLLLeeeevvvveeeellll UUUUssssaaaaggggeeee
  502.      The dump level mechanism provides a structured form of incremental dumps.
  503.      A dump of level _l_e_v_e_l includes only files that have changed since the
  504.      most recent dump at a level less than _l_e_v_e_l.  For example, the operator
  505.      can establish a dump schedule that involves a full dump every Friday and
  506.      a daily incremental dump containing only files that have changed since
  507.      the previous dump.  In this case Friday's dump would be at level 0,
  508.      Saturday's at level 1, Sunday's at level 2, and so on, up to the Thursday
  509.      dump at level 6.
  510.  
  511.      The above schedule results in a very tedious restore procedure to fully
  512.      reconstruct the Thursday version of the filesystem; _x_f_s_r_e_s_t_o_r_e would need
  513.      to be fed all 7 dumps in sequence.  A compromise schedule is to use level
  514.      1 on Saturday, Monday, and Wednesday, and level 2 on Sunday, Tuesday, and
  515.      Thursday.  The Monday and Wednesday dumps would take longer, but the
  516.      worst case restore requires the accumulation of just three dumps, one
  517.      each at level 0, level 1, and level 2.
  518.  
  519.    QQQQuuuuoooottttaaaassss
  520.      If the filesystem being dumped contains quotas, _x_f_s_d_u_m_p will use
  521.      _r_e_p_q_u_o_t_a(1M) to store the quotas in a file called _x_f_s_d_u_m_p__q_u_o_t_a_s in the
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  533.  
  534.  
  535.  
  536.      root of the filesystem to be dumped. This file will then be included in
  537.      the dump.  Upon restoration, _e_d_q_u_o_t_a(1M) can be used to reactivate the
  538.      quotas for the filesystem.  Note, however, that the _x_f_s_d_u_m_p__q_u_o_t_a_s file
  539.      will probably require modification to change the filesystem or UIDs if
  540.      the filesystem has been restored to a different partition or system.
  541.  
  542.    MMMMiiiinnnniiiirrrrooooooootttt RRRReeeessssttttrrrriiiiccccttttiiiioooonnnnssss
  543.      _x_f_s_d_u_m_p is subject to the following restrictions when operated in the
  544.      miniroot environment:  non-restartable, no incrementals, no online
  545.      inventory, synchronous I/O, no quotas.
  546.  
  547.    TTTTrrrruuuusssstttteeeedddd IIIIRRRRIIIIXXXX RRRReeeessssttttrrrriiiiccccttttiiiioooonnnnssss
  548.      In the Trusted IRIX environment, _x_f_s_d_u_m_p must be run at the ddddbbbbaaaaddddmmmmiiiinnnn label
  549.      and with the following set of capabilities:  CCCCAAAAPPPP____DDDDAAAACCCC____RRRREEEEAAAADDDD____SSSSEEEEAAAARRRRCCCCHHHH ,
  550.      CCCCAAAAPPPP____DDDDEEEEVVVVIIIICCCCEEEE____MMMMGGGGTTTT , and CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD....
  551.  
  552.      Also, the following directories and files must be labeled as ddddbbbbaaaaddddmmmmiiiinnnn :
  553.           /var/xfsdump/inventory
  554.           /var/xfsdump/inventory/*
  555.  
  556.      For example, run _x_f_s_d_u_m_p using _s_u_a_t_t_r command.
  557.  
  558.           #### ssssuuuuaaaattttttttrrrr ----MMMM ddddbbbbaaaaddddmmmmiiiinnnn ----CCCC """"CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD,,,, CCCCAAAAPPPP____DDDDEEEEVVVVIIIICCCCEEEE____MMMMGGGGTTTT,,,,\\\\
  559.             CCCCAAAAPPPP____DDDDAAAACCCC____RRRREEEEAAAADDDD____SSSSEEEEAAAARRRRCCCCHHHH++++eeeepppp"""" ----cccc """"xxxxffffssssdddduuuummmmpppp ............""""
  560.  
  561.      If qqqquuuuoooottttaaaassss are enabled, xxxxffffssssdddduuuummmmpppp also needs the CCCCAAAAPPPP____QQQQUUUUOOOOTTTTAAAA____MMMMGGGGTTTT capability.
  562.  
  563.    CCCClllluuuusssstttteeeerrrreeeedddd FFFFiiiilllleeeessssyyyysssstttteeeemmmmssss
  564.      In a clustered environment, a CXFS filesystem may be directly accessed
  565.      simultaneously by many client nodes and a metadata server node.  However,
  566.      it is a restriction of _x_f_s_d_u_m_p that it may only be run on a filesystem's
  567.      metadata server.  With failover or simply server reassignment, a
  568.      filesystem may, over time, have a number of metadata servers.  Therefore,
  569.      in order for _x_f_s_d_u_m_p to maintain a consistent inventory, it must access
  570.      the inventory for past dumps, even if this information is located on
  571.      another node.  It is recommended that the inventory be made accessible by
  572.      all nodes in the cluster using one of the following methods:
  573.  
  574.      Relocate the inventory to a shared filesystem, for example:
  575.  
  576.      - On the node currently containing the inventory:
  577.  
  578.           #### ccccpppp ----rrrr ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp ////sssshhhhaaaarrrreeeedddd____ffffiiiilllleeeessssyyyysssstttteeeemmmm
  579.           #### mmmmvvvv ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp....bbbbaaaakkkk
  580.           #### llllnnnn ----ssss ........////sssshhhhaaaarrrreeeedddd____ffffiiiilllleeeessssyyyysssstttteeeemmmm ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp
  581.  
  582.      - On all other nodes in the cluster:
  583.  
  584.           #### mmmmvvvv ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp....bbbbaaaakkkk
  585.           #### llllnnnn ----ssss ........////sssshhhhaaaarrrreeeedddd____ffffiiiilllleeeessssyyyysssstttteeeemmmm ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp
  586.  
  587.      Export the directory using an NFS shared filesystem, for example:
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  599.  
  600.  
  601.  
  602.      - On the node currently containing the inventory, add /var/xfsdump to
  603.      /etc/exports and then enter the following:
  604.  
  605.           #### eeeexxxxppppoooorrrrttttffffssss ----aaaa
  606.  
  607.      - On all other nodes in the cluster:
  608.  
  609.           #### mmmmvvvv ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp....bbbbaaaakkkk
  610.           #### llllnnnn ----ssss ////hhhhoooossssttttssss////hhhhoooossssttttnnnnaaaammmmeeee////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp ////vvvvaaaarrrr////xxxxffffssssdddduuuummmmpppp
  611.  
  612.  
  613.      Note: It is the /var/xfsdump directory that should be shared, rather than
  614.           the /var/xfsdump/inventory directory.  If there are currently
  615.           inventories stored on various nodes, _x_f_s_i_n_v_u_t_i_l(1M) can be used to
  616.           merge them into a single common inventory, prior to sharing the
  617.           inventory among the cluster.
  618.  
  619.    CCCCoooorrrreeee FFFFiiiilllleeeessss
  620.      If xfsdump abnormally exits causing a core dump, all its associated
  621.      processes which dump core will have core file names with their extensions
  622.      set to the pids of the processes. See _p_r_c_t_l(2) and PPPPRRRR____CCCCOOOORRRREEEEPPPPIIIIDDDD for further
  623.      details.
  624.  
  625.    EEEExxxxcccclllluuuuddddiiiinnnngggg iiiinnnnddddiiiivvvviiiidddduuuuaaaallll ffffiiiilllleeeessss
  626.      Occasionally it is desirable to be able to exclude particular files or
  627.      directories from the dump.  The ----ssss option can be used to limit the dump
  628.      to a specified directory, and the ----zzzz option can be used to exclude files
  629.      over a particular size.  Additionally, when _x_f_s_d_u_m_p is run with the ----eeee
  630.      option individual files can be "tagged" so that _x_f_s_d_u_m_p will not include
  631.      them in a dump.  Files are tagged by assigning that file an extended
  632.      attribute with the name "SGI_XFSDUMP_SKIP_FILE".  This can be done with
  633.      the _a_t_t_r(1) command:
  634.  
  635.           $$$$ aaaattttttttrrrr ----ssss """"SSSSGGGGIIII____XXXXFFFFSSSSDDDDUUUUMMMMPPPP____SSSSKKKKIIIIPPPP____FFFFIIIILLLLEEEE"""" ----VVVV """""""" ffffiiiilllleeee
  636.  
  637.      To remove the attribute:
  638.  
  639.           $$$$ aaaattttttttrrrr ----rrrr """"SSSSGGGGIIII____XXXXFFFFSSSSDDDDUUUUMMMMPPPP____SSSSKKKKIIIIPPPP____FFFFIIIILLLLEEEE"""" ffffiiiilllleeee
  640.  
  641.      It should be noted that xfsdump will not check directories for this
  642.      attribute.
  643.  
  644.      Care should be taken to note which files have been tagged.  Under normal
  645.      operation, _x_f_s_d_u_m_p will only report the number of files it will skip.
  646.      The ----vvvv eeeexxxxcccclllluuuuddddeeeedddd____ffffiiiilllleeeessss====ddddeeeebbbbuuuugggg option, however, will cause _x_f_s_d_u_m_p to list
  647.      the inode numbers of the individual files affected.
  648.  
  649.      If a file was tagged and skipped for a level 0 dump, and subsequently
  650.      that tag was removed, the file would not automatically be included in a
  651.      higher level dump.  The file would only be included if it was modified
  652.      since the last dump.  The _t_o_u_c_h(1) command can be used on the file to
  653.      update its modification time to ensure it will be included in later
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  665.  
  666.  
  667.  
  668.      dumps.
  669.  
  670. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  671.      To perform a level 0, single stream dump of the root filesystem to a
  672.      locally mounted tape drive, prompting for session and media labels when
  673.      required:
  674.  
  675.           #### xxxxffffssssdddduuuummmmpppp ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  676.  
  677.      To specify session and media labels explicitly:
  678.  
  679.           #### xxxxffffssssdddduuuummmmpppp ----LLLL sssseeeessssssssiiiioooonnnn____1111 ----MMMM ttttaaaappppeeee____0000 ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  680.  
  681.      To perform a dump to a remote tape using the minimal rmt protocol and a
  682.      set blocksize of 64k:
  683.  
  684.           #### xxxxffffssssdddduuuummmmpppp ----mmmm ----bbbb 66665555555533336666 ----ffff ooootttthhhheeeerrrrhhhhoooosssstttt::::////ddddeeeevvvv////ttttaaaappppeeee ////
  685.  
  686.      To perform a level 0, multi-stream dump to two locally mounted tape
  687.      drives:
  688.  
  689.           #### xxxxffffssssdddduuuummmmpppp ----LLLL sssseeeessssssssiiiioooonnnn____2222 ----ffff ////ddddeeeevvvv////rrrrmmmmtttt////ttttppppssss4444dddd6666vvvv ----MMMM ttttaaaappppeeee____1111 \\\\
  690.                     ----ffff ////ddddeeeevvvv////rrrrmmmmtttt////ttttppppssss5555dddd6666vvvv ----MMMM ttttaaaappppeeee____2222 ////
  691.  
  692.      To perform a level 1 dump relative to the last level 0 dump recorded in
  693.      the inventory:
  694.  
  695.           #### xxxxffffssssdddduuuummmmpppp ----llll 1111 ----ffff ////ddddeeeevvvv////ttttaaaappppeeee ////
  696.  
  697.      To copy the contents of a filesystem to another directory (see
  698.      _x_f_s_r_e_s_t_o_r_e(1M)):
  699.  
  700.           #### xxxxffffssssdddduuuummmmpppp ----JJJJ ---- //// |||| xxxxffffssssrrrreeeessssttttoooorrrreeee ----JJJJ ---- ////nnnneeeewwww
  701.  
  702.  
  703. FFFFIIIILLLLEEEESSSS
  704.      /var/xfsdump/inventory   dump inventory database
  705.  
  706. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  707.      aaaattttttttrrrr(1), rrrreeeeppppqqqquuuuoooottttaaaa(1M), rrrrmmmmtttt(1M), xxxxffffssssiiiinnnnvvvvuuuuttttiiiillll(1M), xxxxffffssssrrrreeeessssttttoooorrrreeee(1M),
  708.      aaaattttttttrrrr____ggggeeeetttt(2), qqqquuuuoooottttaaaassss(4).
  709.  
  710. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  711.      The exit code is 0 on normal completion, non-zero if an error occurs or
  712.      the dump is terminated by the operator.
  713.  
  714.      For all verbosity levels greater than 0 (ssssiiiilllleeeennnntttt) the final line of the
  715.      output shows the exit status of the dump. It is of the form:
  716.  
  717.           xxxxffffssssdddduuuummmmpppp:::: DDDDuuuummmmpppp SSSSttttaaaattttuuuussss:::: _c_o_d_e
  718.  
  719.      Where _c_o_d_e takes one of the following values:  SSSSUUUUCCCCCCCCEEEESSSSSSSS (normal
  720.  
  721.  
  722.  
  723.                                                                        PPPPaaaaggggeeee 11111111
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. xxxxffffssssdddduuuummmmpppp((((1111MMMM))))                                                        xxxxffffssssdddduuuummmmpppp((((1111MMMM))))
  731.  
  732.  
  733.  
  734.      completion), IIIINNNNTTTTEEEERRRRRRRRUUUUPPPPTTTT (interrupted), QQQQUUUUIIIITTTT (media no longer usable),
  735.      IIIINNNNCCCCOOOOMMMMPPPPLLLLEEEETTTTEEEE (dump incomplete), FFFFAAAAUUUULLLLTTTT (software error), and EEEERRRRRRRROOOORRRR (resource
  736.      error).  Every attempt will be made to keep both the syntax and the
  737.      semantics of this log message unchanged in future versions of xfsdump.
  738.      However, it may be necessary to refine or expand the set of exit codes,
  739.      or their interpretation at some point in the future.
  740.  
  741.      The message ``xfsdump: WARNING: unable to open directory: ino N: Invalid
  742.      argument'' can occur with filesystems which are actively being modified
  743.      while _x_f_s_d_u_m_p is running.  This can happen to either directory or regular
  744.      file inodes - affected files will not end up in the dump, files below
  745.      affected directories will be placed in the _o_r_p_h_a_n_a_g_e directory by
  746.      _x_f_s_r_e_s_t_o_r_e.
  747.  
  748. BBBBUUUUGGGGSSSS
  749.      _x_f_s_d_u_m_p does not dump unmounted filesystems.
  750.  
  751.      The dump frequency field of /_e_t_c/_f_s_t_a_b is not supported.
  752.  
  753.      _x_f_s_d_u_m_p uses the alert program only when a media change is required.
  754.  
  755.      _x_f_s_d_u_m_p requires root privilege (except for inventory display).
  756.  
  757.      _x_f_s_d_u_m_p can only dump XFS filesystems.
  758.  
  759.      The media format used by _x_f_s_d_u_m_p can only be understood by _x_f_s_r_e_s_t_o_r_e.
  760.  
  761.      _x_f_s_d_u_m_p does not know how to manage CD-ROM or other removable disk
  762.      drives.
  763.  
  764.      When the minimal rmt option is specified, _x_f_s_d_u_m_p applies it to all
  765.      remote tape destinations. The same blocksize (specified by the ----bbbb option)
  766.      is used for all these remote drives.
  767.  
  768.      _x_f_s_d_u_m_p can become confused when doing incremental or resumed dumps if on
  769.      the same machine you dump two XFS filesystems and both filesystems have
  770.      the same filesystem identifier (UUID).  Since _x_f_s_d_u_m_p uses the filesystem
  771.      identifier to identify filesystems, _x_f_s_d_u_m_p maintains one combined set of
  772.      dump inventories for both filesystems instead of two sets of dump
  773.      inventories.  This scenario can happen only if _d_d or some other block-
  774.      by-block copy program was used to make a copy of an XFS filesystem.  See
  775.      _x_f_s__c_o_p_y(1M) and _x_f_s(4) for more details.
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.                                                                        PPPPaaaaggggeeee 11112222
  790.  
  791.  
  792.  
  793.